package org.example.model;

/**
 * 链表对象
 * @author: guochao.bj@fang.com
 * @createDate: 2022/5/13 15:26
 */
public class ListNode {

    String value;
    ListNode next;

    public ListNode(String value) {
        this.value = value;
    }

    public ListNode(String value, ListNode next) {
        this.value = value;
        this.next = next;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public ListNode getNext() {
        return next;
    }

    public void setNext(ListNode next) {
        this.next = next;
    }
}
